<?php
/* @var $this TaskController */
/* @var $model Task */

$this->breadcrumbs = array(
    'Tasks' => HSUrl::backendTaskUrl()
);
?>
<a href="<?php echo HSUrl::backendCreateTaskUrl() ?>" class="btn btn-default">Create</a>
<div id="" class="admin-main-wrapper form-inline">
    <div class="dataTables_wrapper">
        <?php $this->widget('zii.widgets.grid.CGridView', array(
            'id' => 'task-grid',
            'dataProvider' => $model->search(),
            'filter' => $model,
            'columns' => array(
                'id',
                'title',
                array('name' => 'day', 'value' => '$data->getDayName()'),
                array('name' => 'user_id', 'value' => '$data->getUserName()'),
                array(
                    'class' => 'CButtonColumn',
                    'template' => '{update}{delete}'
                ),
            ),
        )); ?>
    </div>
</div>